<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::app()->name; ?></title>
<script type="text/javascript">
var base_url = '<?php echo Yii::app()->request->baseUrl; ?>';
</script>
<!--For General-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/reset.css" type="text/css" rel="stylesheet" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" type="text/css" rel="stylesheet" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/templates.css" type="text/css" rel="stylesheet" />
<!--For Jquery UI-->
<link type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/custom-theme/jquery-ui-1.8.14.custom.css" rel="stylesheet" />	
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/jscript/jquery-ui-1.8.14.custom.min.js"></script>

<!--For Logo menu-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/jd_menu.css" rel="stylesheet" type="text/css" />
<?php Yii::app()->getClientScript()->registerCoreScript( 'jquery' ); ?>
<!--For Clock-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.jdigiclock.css" />
</head>

<body>
<h1 class="top">TAN NHAT MINH</h1>
<div id="tnm-wrapper">
	<div id="tnm-header">
    	<div class="logo">
        	<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo-sport.png" width="239" height="61" alt=""/>
			
            <a id="menuTarget" onclick="jd_Menu_show('#exampleMenu', true);"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo-sport-menu.png" width="194" height="61" /></a>
            <ul id="exampleMenu" class="jd_menu" attachto="menuTarget" menuposition="relative bottom left" style="margin-top: 4px;">
                <!-- menuposition may be (relative|absolute) (mb mt ml mr) (bottom left top right) -->
                <!--<li><?php //echo CHtml::link('Thiết lập nhân viên', Yii::app()->request->baseUrl . '/rights'); ?></li>-->
                <li><?php echo CHtml::link('Báo cáo thu chi', Yii::app()->request->baseUrl . '/reports'); ?></li>
                <li>Thiết lập sân bóng &nbsp;&raquo;
                	<ul class="jd_menu" menuposition="relative top right">
                    	<li><?php echo CHtml::link('Sân', Yii::app()->request->baseUrl . '/stadiums/admin'); ?></li>
                    </ul>
                </li>
                <li>Thiết lập Căng tin&nbsp;&raquo;
                	<ul class="jd_menu" menuposition="relative top right">
                    	<li><?php echo CHtml::link('Số bàn', Yii::app()->request->baseUrl . '/settings/tables'); ?></li>
                        <li><?php echo CHtml::link('Menu thức uống',Yii::app()->request->baseUrl . '/drinks/admin'); ?></li>
                        <li><?php echo CHtml::link('Menu trang phục',Yii::app()->request->baseUrl . '/clothings/admin'); ?></li>
                    </ul>
                </li>
                <li><?php echo CHtml::link('Quản lý thông báo',Yii::app()->request->baseUrl . '/announcement/admin'); ?></li>
                <li><?php echo CHtml::link('Thoát',Yii::app()->request->baseUrl . '/user/logout'); ?></li>
            </ul>
            
        </div>
 
        <ul class="main-menu">
            <li<?php if (isset($this->current_page) && $this->current_page=='general') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/general'); ?>"><span>Tổng thể</span></a></li>
            <li<?php if (isset($this->current_page) && $this->current_page=='search-date') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/wdcalendar'); ?>"><span>Lịch đặt sân</span></a></li>
            <li<?php if (isset($this->current_page) && $this->current_page=='canteen') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/canteen'); ?>"><span>Căng tin</span></a></li>
            <li<?php if (isset($this->current_page) && $this->current_page=='supply') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/supplies/admin'); ?>"><span>Vật tư</span></a></li>
            <li<?php if (isset($this->current_page) && $this->current_page=='staff') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/user/admin'); ?>"><span>Nhân viên</span></a></li>
            <li<?php if (isset($this->current_page) && $this->current_page=='customer') echo ' class="act"'; ?>><a href="<?php echo $this->createUrl('/customer'); ?>"><span>Khách hàng</span></a></li>
        </ul>
        <div class="right"></div>
    </div>
    <?php echo $content; ?>
</div>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/jscript/scroll.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/jscript/all-script.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/jscript/jd_Menu.js" language="JavaScript"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/lib/jquery.jdigiclock.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/jscript/jquery.form.js"></script>
</body>
</html>
